Repository navigation
Show bulk Pay only when every selected report can be paid - #104818
allgandalf wants to merge 11 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
dylanexpensify
left a comment
There was a problem hiding this comment.
Looks good from a product perspective
|
@FitseTLT can you check this PR please |
Okay |
|
@allgandalf bump |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@allgandalf Can u pls merge main? |
|
@FitseTLT done |
|
conflicts @allgandalf |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-11-09.16-43-28.mp4Android: mWeb Chrome2026-11-09.16-34-10.mp4iOS: HybridAppiOS: mWeb Safari2026-11-09.16-33-03.mp4MacOS: Chrome / Safari2026-11-09.16-31-55.mp4 |
…rt-payable # Conflicts: # src/hooks/useSearchBulkActions.ts
|
@MelvinBot review |
|
@allgandalf a failing check |
|
🤖 Web test steps verification results: Blocked on dev NewDot web during expense creation. No payments executed; report-selection behavior could not be verified.
Code review: one P2 finding Preserve the payable-only billing check for Select all. At src/hooks/useSearchBulkActions.ts:1706–1725, Keep billing validation scoped to payable reports for Select all, and add a regression test covering this mixed-workspace case. This is a code-path finding; browser reproduction was blocked. Automated tests: Both affected suites passed locally: 66 tests passed. CI: The failing remind check encountered a GitHub API HTTP 500, unrelated to the code changes. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0f0b27beff
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
ts failure |
|
@allgandalf Thank you. Almost Done. Only regarding steps this pr has more impact than the list steps which is a direct copy of the issue that triggered this change. Could we make it align with the changes? |
|
@FitseTLT updated the steps |

Explanation of Change
Bulk Pay on Spend > Reports showed when at least one selected report could be paid, and then paid only those. Approve only shows when every selected report can be approved, so
getPayOptionnow needscanPayon every selected report too. A held expense in any selected report also hides Pay, same as Approve. Select all is unchanged.Fixed Issues
$ #104388
PROPOSAL: #104388 (comment)
Tests
Precondition: turn on "Prevent marking non-reimbursable reports as paid" in the workspace Workflows.
Offline tests
Same as tests
QA Steps
Same as tests
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari